//
//  LivingfunctionView.h
//  LiveStar
//
//  Created by 漪珊 on 2016/12/20.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IMTableView.h"
@class LivingfunctionView;
@protocol LivingfunctionViewDelegate <NSObject>
- (void)functionClickWithSign:(NSString *)sign FunctionView:(LivingfunctionView *)functionView;
@optional
- (void)giftAnimationWithMsgModel:(LSMsgModel *)msgModel;
- (void)starLiveroom;
- (void)CloseFansPresentView;
@end
@interface LivingfunctionView : UIView<UITextFieldDelegate,AVIMMsgListener>
{
    @public
    UIView *_msgInputView;
}

@property (weak, nonatomic) IBOutlet UIView *starInfoView;

@property (weak, nonatomic) IBOutlet UIImageView *StarPhoto;
@property (weak, nonatomic) IBOutlet UILabel *starName;
@property (weak, nonatomic) IBOutlet UILabel *onlineNum;
@property (weak, nonatomic) IBOutlet UIButton *focusBtn;
@property (weak, nonatomic) IBOutlet IMTableView *msgTableView;
@property (weak, nonatomic) IBOutlet UIButton *redPaperBtn;
@property (weak, nonatomic) IBOutlet UIButton *presentBtn;
@property (weak, nonatomic) IBOutlet UIButton *messageBtn;
@property (weak, nonatomic) IBOutlet UIButton *cameraBtn;
@property (weak, nonatomic) IBOutlet UIButton *faceBtn;

//入场动画
@property (weak, nonatomic) IBOutlet UIView *enterAnimationView;
@property (weak, nonatomic) IBOutlet UIImageView *enterBackImg;
@property (weak, nonatomic) IBOutlet UILabel *enterTitle;


//礼物动画
@property (weak, nonatomic) IBOutlet UIImageView *sendUserIocn;
@property (weak, nonatomic) IBOutlet UILabel *sendUserName;
@property (weak, nonatomic) IBOutlet UIImageView *presentNumImg;
@property (weak, nonatomic) IBOutlet UIView *presentAniView;

@property(nonatomic,retain)  AVIMMsgHandler *msgHandler;
@property (nonatomic, weak) id<LivingfunctionViewDelegate>delegate;

@property (nonatomic, assign) BOOL is_Msg;
- (void)msgInputView;
- (void)EnterRoomAnimationWithUsername:(NSString *)userName Level:(NSString *)level;
@end
